import { createStore } from "vuex";

let defaultCity = '广州';
if(localStorage.city){
	defaultCity = localStorage.city;
}

export default createStore({
  state: {
	  cityName:'广州',
  },
  mutations: {
	  changeCity(state,val){
		  state.cityName = val;
		  localStorage.city = val;
	  }
  },
  actions: {},
  modules: {},
});
